// 定义分类相关的API接口函数
import request from '@/util/request'
// 获取所有分类（顶级，二级，对应的商品推荐数据）
export const findAllCategory = () => {
    return request('/home/category/head', 'get')
}
export const findTopCategory = (id) => {
    return request('/category', 'get', { id })
}
export const findSubCategoryFilter = (id) => {
    return request('/category/sub/filter', 'get', { id })
}
export const findSubCategoryGoods = (params) => {
    return request('/category/goods/temporary', 'post', params)
}